import java.util.Comparator;
import java.util.Properties;
import java.util.TreeMap;
import java.util.TreeSet;

/*
 *@Student 张策
 */
public class Text1 {
    public static void main(String[] args) {
        TreeSet treeSet = new TreeSet(new Comparator() {
            @Override
            public int compare(Object o1, Object o2) {
                return ((String)o1).compareTo((String)o2);
            }
        });
        treeSet.add("zcag");
        treeSet.add("aas");
        treeSet.add("ab");
        treeSet.add("c");
        System.out.println(treeSet);
//        Properties properties=new Properties();
//        properties.put("no1",1);
//        properties.put("no2",1);
//        properties.put("no3",666);
//        properties.put("no4",1);
//        System.out.println(properties);
//        properties.remove("no1");
//        System.out.println(properties);
//        Object no3 = properties.get("no3");
//        System.out.println(no3);
    }
}
